package com.powergisol.gis.dao;

import com.powergisol.gis.entity.TabSceneDraw;
import com.powergisol.gis.util.Result;
import com.powergisol.gis.vo.TabSceneDrawVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface TabSceneDrawMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TabSceneDraw record);

    int insertSelective(TabSceneDraw record);

    TabSceneDraw selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TabSceneDraw record);

    int updateByPrimaryKey(TabSceneDraw record);

    TabSceneDrawVo selectSceneDraw(@Param("id") Integer id);

    List<String> getBySceneId(@Param("sceneId") Integer sceneId, @Param("drawType") Integer drawType);

    int getCountBySceneId(@Param("sceneId") Integer sceneId, @Param("drawType") Integer drawType);


    /**
     * 查询有无重复的uuid服务
     * @param uuid
     * @return
     */
    int getCountByUuid(@Param("uuid") String uuid);
}